.example-container {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.example-container h4 {
  margin: 0 0 15px 0;
  color: #495057;
  border-bottom: 2px solid #007bff;
  padding-bottom: 8px;
}

/* 基本条件渲染样式 */
.auth-status {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-status h3 {
  margin: 0 0 10px 0;
  color: #495057;
}

.auth-status p {
  margin: 10px 0;
  color: #6c757d;
}

.auth-status button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  margin: 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.auth-status button:hover {
  background-color: #0056b3;
}

/* 三元运算符样式 */
.controls {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.controls label {
  display: block;
  margin-bottom: 15px;
  color: #495057;
  font-weight: 500;
}

.controls input[type="range"] {
  width: 200px;
  margin-right: 10px;
}

.controls input[type="checkbox"] {
  margin-right: 8px;
}

.temperature-display {
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
}

.temperature-display.hot {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.temperature-display.normal {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.temperature-display.cold {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.status-indicator {
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

.status-indicator.online {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-indicator.offline {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 逻辑与运算符样式 */
.notification-panel {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  max-width: 500px;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.notification-header h5 {
  margin: 0;
  color: #495057;
}

.notification-controls {
  display: flex;
  gap: 10px;
}

.notification-controls button {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.clear-button {
  background-color: #dc3545 !important;
}

.clear-button:hover {
  background-color: #c82333 !important;
}

.unread-badge {
  background-color: #ffc107;
  color: #212529;
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

.notification-list {
  max-height: 300px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #f1f3f4;
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: #f8f9fa;
}

.notification-item.unread {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
}

.notification-item.read {
  background-color: #f8f9fa;
  border-left: 4px solid #28a745;
}

.notification-message {
  flex: 1;
  color: #495057;
}

.mark-read-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.mark-read-btn:hover {
  background-color: #218838;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-style: italic;
}

.settings-panel {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
}

.settings-panel h5 {
  margin: 0 0 10px 0;
  color: #495057;
}

.settings-panel label {
  display: block;
  margin-bottom: 8px;
  color: #495057;
}

/* 复杂条件渲染样式 */
.user-form {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.user-form h5 {
  margin: 0 0 15px 0;
  color: #495057;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
}

.form-row input {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
}

.products-section h5 {
  margin: 20px 0 15px 0;
  color: #495057;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.product-card {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: all 0.2s;
}

.product-card.disabled {
  opacity: 0.6;
  background-color: #f8f9fa;
}

.product-card h6 {
  margin: 0 0 10px 0;
  color: #495057;
}

.product-card .price {
  font-size: 18px;
  font-weight: bold;
  color: #007bff;
  margin-bottom: 15px;
}

.buy-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.buy-button:hover {
  background-color: #218838;
}

.restriction {
  color: #dc3545;
  font-size: 12px;
  padding: 8px;
  background-color: #f8d7da;
  border-radius: 4px;
  text-align: center;
}

.please-login {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  color: #0c5460;
}

.user-summary {
  background-color: #e9ecef;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
}

.user-summary h5 {
  margin: 0 0 10px 0;
  color: #495057;
}

.user-summary p {
  margin: 5px 0;
  color: #495057;
}

/* 防止组件渲染样式 */
.controls {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.controls button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.controls button:hover {
  background-color: #0056b3;
}

.render-area {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  min-height: 200px;
}

.expensive-component {
  background-color: white;
  border: 1px solid #28a745;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.expensive-component h4 {
  margin: 0 0 10px 0;
  color: #28a745;
}

.expensive-component p {
  margin: 5px 0;
  color: #495057;
}

.component-hidden {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #6c757d;
  font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .notification-controls {
    flex-direction: column;
    gap: 5px;
  }
  
  .controls {
    flex-direction: column;
    align-items: stretch;
  }
}